package grape.attend.rest.user.form;
import grape.common.rest.form.BaseUpdateForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 用户假期余额记录日志表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="用户假期余额记录日志表更新表单对象")
public class UserVacationSumRecordUpdateForm extends BaseUpdateForm {

    private static final long serialVersionUID = 1L;
    @NotEmpty(message="用户id,冗余不能为空")
    @ApiModelProperty(value = "用户id,冗余")
    private String userId;

    @NotEmpty(message="假期id不能为空")
    @ApiModelProperty(value = "假期id")
    private String userVacationId;

    @NotEmpty(message="类型，字典id不能为空")
    @ApiModelProperty(value = "类型，字典id")
    private String typeDictId;

    @NotNull(message="假期分钟数不能为空")
    @ApiModelProperty(value = "假期分钟数")
    private Integer vacationSumMin;

    @NotNull(message="假期分钟数是否加，不是加就是减不能为空")
    @ApiModelProperty(value = "假期分钟数是否加，不是加就是减")
    private Boolean isVacationSumPlus;

    @NotEmpty(message="备注不能为空")
    @ApiModelProperty(value = "备注")
    private String remark;



}
